package com.latvia.utils;

public class Constants {
	
	public static final String BASE_URL = "http://192.168.0.101:8080/cooking/rest";
	
	public static final String USERS = "users";
	public static final String CATEGORIES = "categories";
	public static final String FRIENDS = "friends";
	public static final String FAVOURITES = "favourites";
	public static final String RECIPES = "recipes";
	public static final String RECIPEPHASES = "recipephases";
	
	// Parse mode
	public static final int users = 1;
	public static final int categories = 2;
	public static final int friends = 3;
	public static final int favourites = 4;
	public static final int recipes = 5;
	public static final int recipePhases = 6;
	
	
	public static final String JSON = "?format=json";
	public static final String XML = "?format=xml";
	
    public static final Integer OPERATION_DEFAULT_CODE = 0;
    public static final Integer OPERATION_SUCCESSFUL_CODE = 0;
    public static final Integer OPERATION_FAILED_CODE = 1;
    public static final String OPERATION_SUCCESSFUL_MESSAGE = "OK";
    public static final String OPERATION_BAD_PARAMETERS_ERROR_MESSAGE = "Bad parameters passed";
    public static final String OPERATION_BAD_CODE_OR_NOT_SUPPORTED ="Incorrect operation code, or this operation is not supported";

    public static final String EMPTY = "";
    public static final String DIVIDER = " ::: ";
    public static final String EOL = "\n";
    public static final String CONNECTION_NAME = "CookingAppPersistenceUnit";
    public static final String JSON_FORMAT_URL_PARAMETER = "json";
    public static final String XML_FORMAT_URL_PARAMETER = "xml";

    public static final String OPERATION_CREATE_USER = "100";
    public static final String OPERATION_UPDATE_USER = "101";
    public static final String OPERATION_DELETE_USER = "102";
    public static final String OPERATION_CREATE_FRIEND = "110";
    public static final String OPERATION_DELETE_FRIEND = "112";
    public static final String OPERATION_CREATE_FAVORITE = "120";
    public static final String OPERATION_DELETE_FAVORITE = "122";

    public static final String OPERATION_CREATE_CATEGORY = "200";
    public static final String OPERATION_UPDATE_CATEGORY = "201";
    public static final String OPERATION_DELETE_CATEGORY = "202";

    public static final String OPERATION_CREATE_RECIPE= "300";
    public static final String OPERATION_UPDATE_RECIPE = "301";
    public static final String OPERATION_DELETE_RECIPE = "302";

    public static final String OPERATION_CREATE_RECIPE_PHASE= "400";
    public static final String OPERATION_UPDATE_RECIPE_PHASE = "401";
    public static final String OPERATION_DELETE_RECIPE_PHASE = "402";

    public static final Integer INITIAL_SUBCATEGORY_ORDERING = 0;
    public static final String DEFAULT_CATEGORY_NAME_FOR_ANNOUNCEMENTS = "Announcement Default Category 1";
    public static final String DEFAULT_CATEGORY_NAME_FOR_APPLICATIONS = "Default Category";
    public static final Long DEFAULT_CATID_VALUE_FOR_NEW_ANNOUNCEMENT_RELATION = 1L;
    
    // /users
    // User
    public static final String kUserName = "name";
    public static final String kUserSurname = "surname";
    public static final	String kEmail = "email";
    public static final String kFacebookID = "facebookid";
    public static final String kExperience = "experience";
    
    // /users/{id}/friends
    //Add or delete friend (follower)
    public static final String kFriendID = "friendid";
    
    // /users/{id}/favorites
    //Add favourite recipe
    public static final String kFavoriteRecipeID = "recipeid";
    
    //  /categories
    //Category
    public static final String kCategoryName = "name";
    
    //  /recipes
    //Recipe
    public static final String kRecipeName = "name";
    public static final String kDescription = "description";
    public static final String kRecipeExperience = "experience";
    public static final String kRecipeImageURL = "imageurl";
    public static final String kRecipeCategoryID = "categoryid";
    
    //   /recipephases
    //Recipe phase
    public static final String kPhaseOrderIndex = "orderindex";
    public static final String kPhaseDescription = "description";
    public static final String kPhaseTime = "time";
    public static final String kPhaseImageURL = "imageurl";
    public static final String kPhaseRecipeID = "recipeid";
    
}